package com.long1008.service;
import com.long1008.pojo.RewordRules;
import com.long1008.mapper.RewordRulesMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class RewordRulesService {
    @Autowired
    RewordRulesMapper rewordRulesMapper;

    public RewordRules getAllRewordRules() {
        return rewordRulesMapper.getAllRewordRules();
    }
    public int updateRulesByReword(RewordRules rewordRules) {
        return rewordRulesMapper.updateRulesByReword(rewordRules);
    }
    public int updateRulesByPunishment(RewordRules rewordRules) {
        return rewordRulesMapper.updateRulesByPunishment(rewordRules);
    }
    public int updateRulesByLeave(RewordRules rewordRules) {
        return rewordRulesMapper.updateRulesByLeave(rewordRules);
    }
}
